package com.qzh.G;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * gacha模拟
 */
public class GaChaSimulator {
    private Reward rewardA = new Reward("A","SSR",0.001f);
    private Reward rewardB= new Reward("B","SSR",0.001f);
    private Reward rewardC= new Reward("C","SR",0.003f);
    private Reward rewardD= new Reward("D","SR",0.003f);
    private Reward rewardE= new Reward("E","R",0.046f);
    private Reward rewardF= new Reward("F","R",0.046f);
    private Reward rewardG= new Reward("G","N",0.90f);
    private List<Reward> rewardList= new ArrayList<Reward>();
    private void addReWards(){
        rewardList.add(rewardA);
        rewardList.add(rewardB);
        rewardList.add(rewardC);
        rewardList.add(rewardD);
        rewardList.add(rewardE);
        rewardList.add(rewardF);
        rewardList.add(rewardG);
    }




    public static void main(String[] args) {
        GaChaSimulator gaChaSimulator = new GaChaSimulator();
        gaChaSimulator.addReWards();
    }

    /**
     * reward
     */
    @Data
    private class Reward {
        private String name;
        private Float possibility;
        private String  level;
        public Reward(String name,String level,Float possibility)
        {this.name = name;this.level = level;this.possibility = possibility;}
    }
}
